/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.Controller;

import com.Model.Acervo;
import com.Model.Repositories.AcervoRepository;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author Fellipe
 */
@ManagedBean
@ViewScoped
public class BuscaBean {
    
    public List<Acervo> autocomplete(String busca) {
        return new AcervoRepository().buscaNome(busca);
    }
    
}
